package main.java.jdk8;

public class InterfaceTest {
	public static void main(String[] args) {
		Interface1 interface1 = () -> {
			System.out.println("method1");
		};

		interface1.method1();
		interface1.method2();
		Interface1.method3();
	}
}

interface Interface1 {
	void method1();

	default void method2() {
		System.out.println("default method");
	}

	static void method3() {
		System.out.println("static method");
	}
}